function cfdFlowCalculateNodeTopology
%--------------------------------------------------------------------------
%  Written by LiuHaHa @ NWPU, 2021 01 
%  Contact me at: liuzhikan@mail.nwpu.edu.cn
%==========================================================================
% Routine Description:
%   This function processes the topology of the nodes
%--------------------------------------------------------------------------
global cfdFlow;

elementNodes = cfdFlow.mesh.elementNodes;
faceNodes    = cfdFlow.mesh.faceNodes;

% Invert connectivity
nodeElements = cfdFlowInvertConnectivity(elementNodes);
nodeFaces    = cfdFlowInvertConnectivity(faceNodes);

% Store
meshTemp = cfdFlow.mesh;
%
meshTemp.nodeElements = nodeElements;
meshTemp.nodeFaces    = nodeFaces;
%
cfdFlow.mesh = meshTemp;

